package com.etl.dataflow.scheduler.admin.controller;

import com.etl.dataflow.common.response.R;

/**
 * @author dx
 */
public interface DefaultController {
    default R successOrError(boolean success) {
        return success
                ? R.success()
                : R.error();
    }
}
